package com.cha.chaCommon.core.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Baby {
    @ApiModelProperty(value = "宝宝id", example = "1")
    private Integer babyId;
    @ApiModelProperty(value = "宝宝性别", example = "女")
    private String gender;
    @ApiModelProperty(value = "宝宝姓名", example = "小明")
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出生日期", example = "2021-01-01")
    private Date birthDate;
    @ApiModelProperty(value = "父母id", example = "1")
    private Integer parentsId;
}
